//
//  DGGViewController.m
//  DGGCommonSDK
//
//  Created by 胡中楷 on 11/20/2019.
//  Copyright (c) 2019 胡中楷. All rights reserved.
//

#import "DGGViewController.h"
#import <DGGCommonSDK/DGGCommonSDK.h>

@interface DGGViewController ()

@end

@implementation DGGViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    NSString *url = @"www.baidu.com";
    NSDictionary *params = @{@"z": @"Z",@"a": @"A", @"b": @"B"};
    NSDictionary *header1 = [DGGNetSign signGetRequestWithParams:params requestUrl:&url sysCode:@"111" secret:@"222"];
    NSDictionary *header2 = [DGGNetSign signPostRequestWithParams:params sysCode:@"111" secret:@"222"];
    
    NSString *dd = @"wqfqwfqwfqwfqwfqwfqw";
    NSString *base64DD = dd.base64String;
    NSLog(@"编码___%@", base64DD);
    NSLog(@"解码___%@", base64DD.decodeBaseString);
    
    NSData *ddData = [[NSData alloc] initWithData:[dd dataUsingEncoding:NSUTF8StringEncoding]];
    NSString *ddDataBase64 = ddData.base64String;
    NSData *baseData = [ddDataBase64 dataUsingEncoding:NSUTF8StringEncoding];
    NSLog(@"编码___%@",ddDataBase64);
    NSLog(@"解码___%@",baseData.decodeBaseString);
    
    UIColor *oneColor = [UIColor dgg_colorNamed:@"#000002"];
    
    NSLog(@"___%@",oneColor);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
